package com.lt.lumentracks.mapper;

import com.lt.lumentracks.entity.po.ChatMessage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 聊天消息表 Mapper 接口
 * </p>
 *
 * @author swl
 * @since 2025-10-06
 */
public interface ChatMessageMapper extends BaseMapper<ChatMessage> {

    // 批量查询每个会话的最后一条消息
    List<ChatMessage> selectLastMessagesByConversationIds(List<Long> conversationIds);
}
